package test3;

public class Test {
    public static void main(String[] args) {
        Kitchen kitchen = new Kitchen();

        new Thread(()->{
            for (int i = 1; i <= 10; i++) {
                kitchen.cut(i);
            }
        },"切菜师傅").start();

        new Thread(()->{
            for (int i = 1; i <= 10; i++) {
                kitchen.cook(i);
            }
        },"炒菜师傅").start();

        new Thread(()->{
            for (int i = 1; i <= 10; i++) {
                kitchen.give(i);
            }
        },"端菜师傅").start();
    }
}
